#!/bin/bash

#g++ -shared -I/opt/java/include -I/opt/java/include/linux jni_ExtProposal.cpp -olibTest.so
g++ -shared -fPIC -I/usr/lib/jvm/java-6-openjdk/include -I/usr/lib/jvm/java-6-openjdk/include/linux extmodule_JNI_Feed.cpp extmodule_JNI_GetProposal.cpp -olibExtProposal.so
#g++ -shared -fPIC -I/usr/lib/jvm/java-6-openjdk/include -I/usr/lib/jvm/java-6-openjdk/include/linux extmodule_JNI_Feed.cpp -olibExtProposal.so


#g++ -shared -I/opt/java/include -I/opt/java/include/linux jni_ExtProposalMC.cpp -olibMC.so
g++ -shared -fPIC -I/usr/lib/jvm/java-6-openjdk/include -I/usr/lib/jvm/java-6-openjdk/include/linux extmodule_ExtProposalMC.cpp -olibMC.so


cp libExtProposal.so ../../
cp libMC.so ../../

